package com.kgc.service.Impl;

import com.kgc.dao.mapper.NotificationsMapper;
import com.kgc.entity.Notifications;
import com.kgc.service.interf.NotificationsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NotificationsServiceImpl implements NotificationsService {

    @Autowired
    private NotificationsMapper notificationsMapper;

    //查询公告
    @Override
    public List<Notifications> selectNotifications(Notifications notificationId) {
        return notificationsMapper.selectNotifications(notificationId);
    }

    //添加公告
    @Override
    public int addNotifications(Notifications notifications) {
        return notificationsMapper.addNotifications(notifications);
    }

    //删除公告
    @Override
    public int deleteNotifications(Notifications notifications) {
        return notificationsMapper.deleteNotifications( notifications);
    }
}
